package com.gupaoedu.xin.vip.pattern.factory.factorymethod;

import com.gupaoedu.xin.vip.pattern.factory.ICourse;

public class FactoryMethodTest {
    public static void main(String[] args) {
        ICourseFactory factory = new JavaCourseFactory();
        ICourse course= factory.create();
        course.record();

        ICourseFactory factory1 = new PythonCourseFactory();
        ICourse course1 = factory1.create();
        course1.record();

    }
}
